#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void test1() {
	SeqList list;
	SeqListInit(&list);

	SeqListPushBack(&list, 1);
	SeqListPushBack(&list, 2);
	SeqListPushBack(&list, 3);
	SeqListPushBack(&list, 4);
	SeqListPushBack(&list, 5);
	SeqListPushBack(&list, 6);

	SeqListInsert(&list, 6,999);

	//SeqListErase(&list, 6);
	SeqListPrint(&list);

	SeqListPushBack(&list, 7);
	SeqListPushBack(&list, 8);
	SeqListPushBack(&list, 9);
	SeqListPrint(&list);

	//SeqListFind(&list,5);

	SeqListPushFront(&list, 10);
	SeqListPushFront(&list, 12);
	SeqListPushFront(&list, 13);
	SeqListPushFront(&list, 14);
	SeqListPrint(&list);

	SeqListPopBack(&list);
	SeqListPopBack(&list);
	SeqListPopBack(&list);
	SeqListPopBack(&list);
	SeqListPrint(&list);

	SeqListPopFront(&list);
	SeqListPopFront(&list);
	SeqListPopFront(&list);
	SeqListPopFront(&list);
	SeqListPrint(&list);

	SeqListDestory(&list);
}

int main() {
	test1();
	return 0;
}